﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="TU_Menus.List.aspx.cs" Inherits="JOIN.Rights.Apps.TU_MenusList" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <!-- List.aspx -->
    <ajaxToolkit:ToolkitScriptManager ID="scriptmanager1" runat="server" />
    <table cellspacing="0" cellpadding="0" width="95%" border="0">
        <tr>
            <td>
                <table width="100%" class="InputTable">
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            项目编码：
                        </td>
                        <td height="25" width="*" align="left">
                            <Kevin:CodeNameSelect ID="cnsProject" runat="server" ServicePath="~/Services/CodeNameService.asmx"
                    ServiceMethod="GetProjects" MinimumPrefixLength="0" />
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            菜单编号：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtMenuID" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            菜单名称：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtMenuName" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            菜单说明：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtMenuDesc" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            菜单连接地址：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtMenuLink" runat="server" Width="200px" ToolTip="Web中为Url，winform中为Form地址"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            菜单级数：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtMenuLevel" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            父菜单编号：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtMenuParent" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            菜单图标地址：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtMenuIcoUrl" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            菜单项样式名称：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtMenuCssName" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            功能ID：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtFunctionID" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            排序序号：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtOrderIndex" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <input type="button" id="btnQuery" value="查询" class="btn" />
                &nbsp;&nbsp;
                <input type="button" id="btnAdd" value="新增" class="btn" />
                <Kevin:DialogWindow ID="window1" runat="server" ControlID="btnAdd" URL="TU_Menus.aspx" AlwaysNewContent="true"
                    Height="400px" Width="600px">
                </Kevin:DialogWindow>
            </td>
        </tr>
        <tr>
            <td>
                <Kevin:Grid ID="grid1" runat="server" GridCssClass="Grid" ServicePath="~/Services/BLLService.asmx"
                    QueryMethod="GetMenusInfoList" AutoGetData="true" QueryControlID="btnQuery" PagerPlace="Both"
                    PageSize="15">
                    <Parameters>
                        <Kevin:QueryParameter ControlID="cnsProject" DataPropertyName="ProjectID" ControlPropertyName="Value" GetValueClientMethod="_getCodeNameSelectValue" />
                        <Kevin:QueryParameter ControlID="txtMenuID" DataPropertyName="MenuID" />
                        <Kevin:QueryParameter ControlID="txtMenuName" DataPropertyName="MenuName" />
                        <Kevin:QueryParameter ControlID="txtMenuDesc" DataPropertyName="MenuDesc" />
                        <Kevin:QueryParameter ControlID="txtMenuLink" DataPropertyName="MenuLink" />
                        <Kevin:QueryParameter ControlID="txtMenuLevel" DataPropertyName="MenuLevel" />
                        <Kevin:QueryParameter ControlID="txtMenuParent" DataPropertyName="MenuParent" />
                        <Kevin:QueryParameter ControlID="txtMenuIcoUrl" DataPropertyName="MenuIcoUrl" />
                        <Kevin:QueryParameter ControlID="txtMenuCssName" DataPropertyName="MenuCssName" />
                        <Kevin:QueryParameter ControlID="txtFunctionID" DataPropertyName="FunctionID" />
                        <Kevin:QueryParameter ControlID="txtOrderIndex" DataPropertyName="OrderIndex" />
                    </Parameters>
                    <DataFields>
                        <Kevin:PopUpField FieldName="ID" ItemText="编辑" DialogTitle ="菜单项" NavigateURLString="TU_Menus.aspx?KeyID={0}"
                            FormatFields="ID" DialogWidth="600" DialogHeight="400" />
                            <Kevin:DataBoundField FieldName="ID" HeaderText="唯一键"  Visible="false"/>
                        <Kevin:DataBoundField FieldName="ProjectID" HeaderText="项目编码" />
                        <Kevin:DataBoundField FieldName="MenuID" HeaderText="菜单编号" />
                        <Kevin:DataBoundField FieldName="MenuName" HeaderText="菜单名称" />
                        <Kevin:DataBoundField FieldName="MenuDesc" HeaderText="菜单说明" />
                        <Kevin:DataBoundField FieldName="MenuLink" HeaderText="菜单连接地址" />
                        <Kevin:DataBoundField FieldName="MenuLevel" HeaderText="菜单级数" />
                        <Kevin:DataBoundField FieldName="MenuParent" HeaderText="父菜单编号" />
                        <Kevin:DataBoundField FieldName="MenuIcoUrl" HeaderText="菜单图标地址" />
                        <Kevin:DataBoundField FieldName="MenuCssName" HeaderText="菜单项样式名称" />
                        <Kevin:DataBoundField FieldName="FunctionID" HeaderText="功能ID" />
                        <Kevin:DataBoundField FieldName="OrderIndex" HeaderText="排序序号" />
                    </DataFields>
                </Kevin:Grid>
            </td>
        </tr>
    </table>
</asp:Content>
